import { Descriptions } from 'antd';

const App = ({ current }) => {

  const { type, contractNo, storeName,  billsOutDay, createTime, lastAmount, repamentAmount } = current;

  return (
    <Descriptions title="基本信息：">
      <Descriptions.Item label="合同编号">{contractNo}</Descriptions.Item>
      <Descriptions.Item label="供应商名称">{storeName}</Descriptions.Item>
      {/* field:{未出账期  ||  待还、历史 }*/}
      <Descriptions.Item label="出账时间">{billsOutDay || createTime}</Descriptions.Item>
      { type != 3 && <Descriptions.Item label="应还金额（元）">{repamentAmount || lastAmount}</Descriptions.Item>}
    </Descriptions>
  )
};

export default App;